﻿using Gallery;
using Gallery.Datas.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GalleryMock
{
	public class MoneyFundIncomeService : IMoneyFundIncomeService
	{
		public List<MoneyFundIncome> GetLatestIncomes()
		{
			List<MoneyFundIncome> incomes = new List<MoneyFundIncome>();
			MoneyFundIncome m1 = new MoneyFundIncome() { Id = 1, FundId = 1, Date = DateTime.Parse("2014-01-01"), Income = 1.954m, Yield = 0.0637m };
			MoneyFundIncome m2 = new MoneyFundIncome() { Id = 2, FundId = 2, Date = DateTime.Parse("2014-01-01"), Income = 1.854m, Yield = 0.0615m };
			incomes.Add(m1);
			incomes.Add(m2);
			return incomes;
		}

		public List<MoneyFundIncome> GetIncomes(string code, int pageSize, int pageIndex)
		{
			List<MoneyFundIncome> incomes = new List<MoneyFundIncome>();
			MoneyFundIncome m1 = new MoneyFundIncome() { Id = 1, FundId = 1, Date = DateTime.Parse("2014-01-01"), Income = 1.954m, Yield = 0.0637m };
			MoneyFundIncome m2 = new MoneyFundIncome() { Id = 2, FundId = 1, Date = DateTime.Parse("2014-01-01"), Income = 1.854m, Yield = 0.0615m };
			incomes.Add(m1);
			incomes.Add(m2);
			return incomes;
		}
	}
}
